#!/bin/csh -f
#

if ( ! -e $TMPFILEDIR/.hm14lock ) then
        touch $TMPFILEDIR/.hm14lock
endif

if (! -e $TMPFILE) then
        echo "I CANNOT FIND THE FILE $TMPFILE "
endif

echo '****************' >> $TMPFILE
echo ` `                >> $TMPFILE
echo `date`             >> $TMPFILE
echo ` `                >> $TMPFILE
echo `uname -a`         >> $TMPFILE
echo ` `                >> $TMPFILE
echo `hinv | egrep "MHZ"`       >> $TMPFILE
echo `hinv | egrep "CPU"`       >> $TMPFILE
echo `hinv | egrep "memory"`    >> $TMPFILE
echo `hinv | egrep "CDROM"`     >> $TMPFILE
echo `hinv | egrep "Audio"`     >> $TMPFILE
echo `hinv | egrep "Graphics"`  >> $TMPFILE
echo ` `                        >> $TMPFILE
echo `nvram | egrep "netaddr"`  >> $TMPFILE
echo ` `                >> $TMPFILE
echo `swap -s`          >> $TMPFILE
echo ` `                >> $TMPFILE
echo "USER:$USER"       >> $TMPFILE
echo "HOST:`hostname`"  >> $TMPFILE
echo "  OS:`uname -r`"  >> $TMPFILE
echo "MAIL:$MAIL"       >> $TMPFILE
echo ` `                >> $TMPFILE
echo '******END*******' >> $TMPFILE

Mail -s "Hot Mix 14" hotmix@sgi.com < $TMPFILE


